package it.unisa.beans;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;
import javax.persistence.*;
@Entity
@Table(name="account_route")
@AssociationOverrides({
		@AssociationOverride(name = "id.account", 
			joinColumns = @JoinColumn(name = "id_account")),
		@AssociationOverride(name = "id.route", 
			joinColumns = @JoinColumn(name = "id_route")) })
public class AccountRoute  {
	
	private Date date;
	private Time time;
	@EmbeddedId
	private AccountRouteID id=new AccountRouteID();
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Time getTime() {
		return time;
	}
	public void setTime(Time time) {
		this.time = time;
	}
	public AccountRouteID getId() {
		return id;
	}
	public void setId(AccountRouteID id) {
		this.id = id;
	}
	
	
	
	
}
